/*******************************************************************************
 * @project: EveryClass
 * @package: com.burns.everyclass.test
 * @file: GetClassFromJarTest1.java
 * @author: Administrator
 * @created: 2017-6-2
 * @purpose:
 * 
 * @version: 1.0
 * 
 * Revision History at the end of file.
 * 
 * Copyright 2017 AcconSys All rights reserved.
 ******************************************************************************/

package com.burns.everyclass.test;

import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;

public class GetClassFromJarTest1 {

	public static void main(String[] args) throws Exception {
		// 项目中jar包所在物理路径
		String jarName = "D:/eclipse_wks/EveryClass/lib/TeamCenter_Webservice.jar";
		JarFile jarFile = new JarFile(jarName);
		Enumeration<JarEntry> entrys = jarFile.entries();
		while (entrys.hasMoreElements()) {
			JarEntry jarEntry = entrys.nextElement();
			System.out.println(jarEntry.getName());
		}

		/**
		 * 输出结果如下 META-INF/MANIFEST.MF .project .classpath
		 * kos/tccapital/service/package-info.class
		 * kos/tccapital/service/GetTargetFolder.class
		 * kos/tccapital/service/UploadFilesResponse.class
		 * kos/tccapital/service/UploadFiles.class
		 * kos/tccapital/service/TcCapitalServiceImplService.class
		 * kos/tccapital/service/LoginResponse.class
		 * kos/tccapital/service/LogoutResponse.class
		 * kos/tccapital/service/GetTargetFolderResponse.class
		 * kos/tccapital/service/Logout.class kos/tccapital/service/Login.class
		 * kos/tccapital/service/ObjectFactory.class
		 * kos/tccapital/service/TcCapitalService.class
		 */
	}
}

/*******************************************************************************
 * <B>Revision History</B><BR>
 * [type 'revision' and press Alt + / to insert revision block]<BR>
 * 
 * 
 * 
 * Copyright 2017 AcconSys All rights reserved.
 ******************************************************************************/
